﻿@page "{id:int}"
@model ModifyModel
@section Aside
    {
    @Html.Partial("_Aside")
}
<ol class="breadcrumb">
    <li><span class="glyphicon glyphicon-home"></span>  <a asp-page="/Manage/Index">首页</a></li>
    <li><a asp-page="/Member/Content/List">内容管理</a></li>
    <li class="active">修改内容</li>
</ol>


@if (Model.Notice != null)
{
    @Html.Partial("_Notice", Model.Notice);

}
else
{
    switch(Model.Input.ModuleType)
    {
        case Models.ModuleType.Article:
            @Html.Partial("_ModifyArticlePartial", Model.Input);
            @section scripts{
                @await Html.PartialAsync("_ValidationScriptsPartial")
                <script src="~/lib/zTree/js/jquery.ztree.core.min.js"></script>
                <script src="~/lib/bootstrap3-dialog/dist/js/bootstrap-dialog.min.js"></script>
                <script src="~/Member/Default/Js/ComboTree.js"></script>
                <script src="~/Member/Default/Js/_AddArticlePartial.js"></script>
                <script src="~/lib/tinymce/tinymce.min.js"></script>
                <script src="~/lib/tinymce/langs/zh_CN.js"></script>
                <script type="text/javascript">
                    $(document).ready(function () {
                        tinymce.init({
                            selector: '#Article_Content',
                        });
                    });
                </script>
            }
            break;

    }
}
@section css{
    <link href="~/lib/zTree/css/metroStyle/metroStyle.css" rel="stylesheet" />
    <link href="~/lib/bootstrap3-dialog/dist/css/bootstrap-dialog.min.css" rel="stylesheet" />
}